﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsMaintenanceDetail _iCsMaintenanceDetail = null;


        public static ICsMaintenanceDetail CreateCsMaintenanceDetail()
        {
            if (_iCsMaintenanceDetail == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.Maintenance.CsMaintenanceDetail_Sys";
                _iCsMaintenanceDetail = (ICsMaintenanceDetail)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsMaintenanceDetail;
        }
    }

    public interface ICsMaintenanceDetail
    {
         bool InsertCsMaintenanceDetail(DataTable dt);
         bool InsertCsMaintenanceDetail(DataTable dt, List<string> StrProjectIDs);
         DataTable GetEmptyTable();
    }
}
